package com.caiwangdai.app.origin

import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager

import com.caiwangdai.app.R


//专门显示fragment的activity的基类
abstract class BaseFragmentActivity : BaseActivity() {
    override fun getLayoutResID() = R.layout.activity_base_fragment

    protected var fragmentManager = supportFragmentManager

    protected abstract val fragment: Fragment

    override fun initView() {
        fragmentManager.beginTransaction().add(R.id.id_content, fragment).commit()
    }

}
